<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <title>Jasmine Spec Runner</title>

  <link rel="shortcut icon" type="image/png" href="lib/jasmine-1.2.0/jasmine_favicon.png">
  <link rel="stylesheet" type="text/css" href="lib/jasmine-1.2.0/jasmine.css">
  <script type="text/javascript" src="lib/jasmine-1.2.0/jasmine.js"></script>
  <script type="text/javascript" src="lib/jasmine-1.2.0/jasmine-html.js"></script>
  
  <script src='https://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js'></script>

  <!-- include source files here... -->
  <script type="text/javascript" src="src/streamer.js"></script>

  <!-- for audio file selector -->
  <script>
    var _audio_data_1;
    var _audio_data_1_selected = false;
  </script>

  <!-- include spec files here... -->
  <script type="text/javascript" src="spec/SpecHelper.js"></script>
  <script type="text/javascript" src="spec/Common_spec.js"></script>
  <script type="text/javascript" src="spec/UserInfo_spec.js"></script>
  <script type="text/javascript" src="spec/Tune_spec.js"></script>
  <script type="text/javascript" src="spec/TuneList_spec.js"></script>
  <script type="text/javascript" src="spec/StreamingPacket_spec.js"></script>
  <script type="text/javascript" src="spec/Player_spec.js"></script>
  <script type="text/javascript" src="spec/W3CPlayer_spec.js"></script>

  <script type="text/javascript">
    (function() {
      var jasmineEnv = jasmine.getEnv();
      jasmineEnv.updateInterval = 1000;

      var htmlReporter = new jasmine.HtmlReporter();

      jasmineEnv.addReporter(htmlReporter);

      jasmineEnv.specFilter = function(spec) {
        return htmlReporter.specFilter(spec);
      };

      var currentWindowOnload = window.onload;

      window.onload = function() {
        if (currentWindowOnload) {
          currentWindowOnload();
        }
        execJasmine();
      };

      function execJasmine() {
        jasmineEnv.execute();
      }

    })();
  </script>

</head>

<body>

<!-- AUDIO file Selector  start -->
<div class="audio-selector">
  <h3>Audio Data 1 selector</h3>
  <h5>you must select audio file in 30 seconds to tests that need audio file.</h5>
  <input type="file" id="audio-select1" name="audio_select1_file[]" multiple="">
  <output id="audio-select1-out"><ul></ul></output>
  <hr>
</div>
<script>
  function handleFileSelect(evt) {
    var files = evt.target.files; // FileList object
    _audio_data_1 = files[0];
    _audio_data_1_selected = true;

    // files is a FileList of File objects. List some properties.
    var output = [];
    for (var i = 0, f; f = files[i]; i++) {
      output.push('<li><strong>', escape(f.name), '</strong> (', f.type || 'n/a', ') - ',
                  f.size, ' bytes, last modified: ',
                  f.lastModifiedDate.toLocaleDateString(), '</li>');
    }
    document.getElementById('audio-select1-out').innerHTML = '<ul>' + output.join('') + '</ul>';
  }

  document.getElementById('audio-select1').addEventListener('change', handleFileSelect, false);
</script>
<!-- AUDIO file Selector  end -->

</body>
</html>
